WATERVILLE, Maine — After more than 14 hours, a standoff on College Avenue in Waterville ended Sunday morning after a man who fired several shots into the floor of his second-story apartment was taken into custody.

Waterville Police Chief Joseph Massey said the standoff at 124 College Ave. started at about 9 p.m. Saturday when 23-year-old Michael Joslyn fired shots inside the apartment.

Joslyn fired several shots into the floor and came close to hitting the occupant inside the first-floor apartment, according to police. That person was not injured and was able to leave the building safely during the standoff, according to a report in the Waterville Morning Sentinel.

More shots were fired around 1:30 a.m. Sunday. A four-block area around the building on College Avenue was blocked off by police for the duration of the standoff.

Joslyn was taken into custody around 11:30 a.m. Sunday. Specific charges had not yet been determined, the Sentinel reported.

Massey said earlier on Sunday that he was unsure what started the incident, though police were familiar with Joslyn, who the Sentinel reports has had several run-ins with the law in recent years.

BDN writer Meg Haskell contributed to this report.

Follow the Bangor Daily News on Facebook for the latest Maine news.