Police officer shoots, kills man inside Montana hotel