Two people, including a child, have died after their boat sank off Turkey's western coast.

The Turkish coastguard said that a search was underway to find 10 others.

It said one migrant had been rescued after two others swam to shore not far from the coastal town of Dikili in Izmir province.

Initial testimonies from the survivors revealed that the boat was carrying 15 migrants, 14 Afghans and one Iranian, the coastguard said in a statement.

Turkey has been a main transition route for migrants trying to get to Europe, especially since the start of the Syrian conflict in 2011.

Turkey hosts more than three million Syrian refugees and up to 300,000 Iraqis. 

The number of migrants coming to Europe has declined since the influx hit a peak in 2015 when more than a million people landed in Greece from Turkey, mainly via boats.

Turkey and the European Union reached a deal in 2016 to stem the flow of migrants, with Ankara agreeing to take back migrants landing on Greek islands in exchange for incentives including financial aid.