A man accused of shooting six Philadelphia police officers during a standoff that lasted more than seven hours has surrendered to police.