People in a coastal town have been advised to stay in and keep doors and windows shut after reports of a noxious odour.