A man who was shot dead by police inside a home had threatened to harm himself while on a video call with his girlfriend.