Man shot and killed after possible home invasion, police say