A travel warning has been issued for Playa del Carmen, Mexico, following an unnamed threat that has closed the US Embassy there.