Police: Shelton man swears at Milford residents, strikes police officer