Police: Man tried to rape sleeping girl