The man suspected of calmly walking into a service at an Atlanta-area megachurch and gunning down a church volunteer leading a prayer was committed eight years ago to a psychiatric hospital after a violent incident in Maryland, court records show.